package net.huanger.gametools.mapeditor.ui.impl;


public abstract class AbstractDataOperate extends AbstractOperate
{
  private int[] data;
  public AbstractDataOperate(int row, int column)
  {
    super(row, column);
    data=new int[row*column];
  }

  protected int getCellData(int cell){
    return data[cell];
  }
  protected void setCellData(int cell,int value){
    this.data[cell]=value;
  }

  @Override
  public boolean hasData()
  {
    return true;
  }

  @Override
  public int[] getData()
  {
    return data;
  }
  
}
